<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="/resource/UserPwoer.tld" prefix="p"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>正在跳转登陆...</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<script type="text/javascript"
	src="${path }/resource/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/systools/DDMBase.js"></script>

<link rel="stylesheet" href="${path }/resource/weixin/css/login.css">

</head>
<body>
	<div class="go-login">
	<img src="${path }/resource/images/nologin.png"></a>
	<h1 class="color-y ">家掌柜提醒您:</h1>
	<h2>请登录后查看访问详情 </h2>
	<h3><span id="btnSendCode" class="color-y">5</span>秒后自动跳转到登录</h3>
	<a href="${path}/visitor/redirect/login" class="color-y">马上跳转登录</a>
	</div>
	
  <!-- 主内容结束 -->
   <script type="text/javascript">
 
  


  var InterValObj; //timer变量，控制时间
  var count = 5; //间隔函数，1秒执行
  InterValObj = window.setInterval(SetRemainTime, 1000); 
  	


 //timer处理函数
function SetRemainTime() {
     if (count==0) {                
         MTools.redirect("${path}/visitor/redirect/login");
     }  else {
    	 count--;
         $("#btnSendCode").html(count);
     }
 } 
  
  </script>
</body>
</html>